﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site3forAdmin.Master" AutoEventWireup="true" CodeBehind="ViewCustomerforAdmin.aspx.cs" Inherits="WebApp.ViewCustomerforAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">

<script type="text/javascript" language="javascript">
function DeleteConfirmation(item)
{
if (confirm("Are you sure you want to delete selected records " + item + " ^^~♥ ?")==true)
   return true;
else
   return false;
}


</script>

    <table style="width:100%;">
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    EnableModelValidation="True" Width="794px" onrowcancelingedit="Cancel" 
                    onrowdeleting="Delete" onrowediting="Editting" onrowupdating="Update" 
                    onrowdatabound="GridView1_RowDataBound">
                    <Columns>
                        <asp:BoundField DataField="cusID" HeaderText="ID" />
                        <asp:BoundField DataField="username" HeaderText="username" />
                        <asp:BoundField DataField="password" HeaderText="Password" />
                        <asp:BoundField DataField="name" HeaderText="Name" />
                        <asp:BoundField DataField="address" HeaderText="Address" />
                        <asp:BoundField DataField="phone" HeaderText="Phone" />
                        <asp:BoundField DataField="totalorders" HeaderText="Total Orders" />
                        <asp:BoundField DataField="totalprice" HeaderText="Total Price" />
                        <asp:CommandField ShowEditButton="True" />
                        <asp:CommandField ShowDeleteButton="True"   />
                       
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblm" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnok" runat="server" Text="OK" onclick="btnok_Click" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
